package com.hmall.fign.client;

import com.hmall.common.dto.PageDTO;
import com.hmall.common.dto.SearchFilterDTO;
import com.hmall.common.pojo.Item;
import com.hmall.common.vo.FilterParamVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * x
 *
 * @Description ItemClient
 * @Author kzw
 * @Date 2024-11-14
 */
@FeignClient("itemservice")
@RequestMapping("item")
public interface ItemClient {

    @PostMapping("/search")
    SearchFilterDTO search(@RequestBody FilterParamVo filterParamVo);

    @PostMapping("/search/list")
    PageDTO<Item> searchListItem(@RequestBody FilterParamVo filterParamVo);
}